<template>
  <div id="app">
    <router-view />
    <theme-picker />

      <!-- //批量导入 -->
     <BatchImport ref="BatchImport"></BatchImport>
     <!-- //组织管理批量导入 -->
     <BatchImportOrgOuter ref="BatchImport"></BatchImportOrgOuter>
  </div>
</template>

<script>
import ThemePicker from "@/components/ThemePicker";
//批量导入
import BatchImport from "@/components/common/BatchImport";
import BatchImportOrgOuter from "@/components/common/BatchImportOrgOuter";


export default {
  name: "App",
  components: { ThemePicker,BatchImport,BatchImportOrgOuter },
  metaInfo() {
    let title = localStorage.getItem('COMPANY_RESOURCE');
        title = JSON.parse(title)

    let $favicon = document.querySelector('link[rel="icon"]');
        $favicon.href = title[2]?.paramValue;
        document.head.appendChild($favicon);

    return {
      title: title[5]?.paramValue,//this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        return title ? `${title}` : process.env.VUE_APP_TITLE
      },
      icon: title[1]?.paramValue
    }
  }
};
</script>
<style scoped>
#app .theme-picker {
  display: none;
}
</style>
